package com.example.back.service;

import com.example.back.mapper.UserAnalysisMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.HashMap;
import java.util.Map;

@Controller
public class UserAnalysisService {
    @Autowired
    private UserAnalysisMapper userAnalysisMapper;
    public HashMap<String, Object>  UserAnalysisService() {
        HashMap<String,Object> map = new HashMap<>();


        // 用户类型
        map.put("userType",userAnalysisMapper.getUserAnalysisByTime());
        map.put("userSex",userAnalysisMapper.getUserAnalysisBySex());
        return map;
    }
}
